import './index.css';
import React from "react";
import {Button} from 'antd';
import AddArticle from '../addArticle/index.js';
import {useDispatch} from 'react-redux';



export default function ContentManagePage() {
    
    const dispatch = useDispatch();

    return (
        <div className="contentmanage">
            <Button type="primary" shape="round" size="middle" onClick={() => dispatch({type:'ISADDARTICLE'})} >添加文章</Button>
            <AddArticle />
        </div>
    )
}